package com.zhongli.devplatform.dto.student;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author WuXiCheng
 * @version 1.0
 * @date 2020/7/23 13:06
 */
@Data
@ApiModel(value = "绑定家长",description = "绑定家长数据传输对象")
public class BindParentDTO {
    /**
     * 家长手机号
     */
    @NotBlank(message = "家长手机号不能为空")
    @ApiModelProperty(name = "phone",value = "家长手机号必填", required = true)
    private String phone;

    /**
     * 家长用户名
     */
    @NotBlank(message = "家长用户名")
    @ApiModelProperty(name = "nickName",value = "家长用户名必填", required = true)
    private String nickName;

    /**
     * 手机验证码
     */
    @NotBlank(message = "手机验证码")
    @ApiModelProperty(name = "code",value = "手机验证码必填", required = true)
    private String code;

}
